import 'package:enterprise_v6_app/app/components/toast_widget.dart';
import 'package:enterprise_v6_app/app/data/entities/double_control/promise_day_record_detail_entity.dart';
import 'package:enterprise_v6_app/app/modules/profile/controller.dart';
import 'package:get/get.dart';

///每日承诺审签
class DailyApproveController extends GetxController {
  ///获取相应数据
  PromiseDayRecordDetailEntity? data = Get.arguments as PromiseDayRecordDetailEntity;

  final profile = Get.find<HomeMyController>();
  var currentStep = 0.obs;
  String dataStep1 = '';
  String dataStep2 = '';

  void goToNextStep() {
    if (currentStep < 6) {
      currentStep.value++;
      return;
    }
    AppToast.showSuccess('提交');
  }

  void goToPreviousStep() {
    if (currentStep > 0) {
      currentStep.value--;
    }
  }
}
